package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.UserMapper;
import cn.uniqueinfo.dp.service.IUserService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.UserVO;
import org.springframework.stereotype.Service;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-04 11:50:52
 * @description:用户
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<UserVO> implements IUserService {

    private UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
        this.baseMapper = userMapper;
    }

    @Override
    public UserVO findByLoginName(String loginName) {
        return this.userMapper.findByLoginName(loginName);
    }
}
